package com.atguigu.tingshu.user.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;

@ConfigurationProperties(prefix = "wechat.login")
@Data
@Component
@RefreshScope    //nacos里发生变化  不需要重启服务器就可以读到新的数据
public class WechatAccountConfig {
        //公众平台的appId
        private String appId;
        //小程序微信公众平台秘钥
        private String appSecret;
}
